$(function(){
    jQuery("#banner").slide({
        effect: "fade",
        easing: "swing",
        interTime: "4000",
        delayTime: "500",
        trigger: 'click',
        autoPlay: true,
        pnLoop: true,
        titCell: ".hd li",
        mainCell: ".bd ul",
        titOnClassName: "current",
        prevCell:" .prevBtn",
        nextCell:" .nextBtn",
        startFun: function (i, c) {
            var li = $('#banner .bd ul li').eq(i);
            if ($(li).find("span").attr('show') == 0) {
                $(li).find("span").css({
                    'background': 'url(' + $(li).find("span").attr("url") + ') no-repeat center',
                    'display': 'block',
                    'width': '100%',
                    'height': '100%'
                }).attr('show', 1);
            }
        }
    });

    $('#keyword').focus(function(){
        $(this).parent().css('opacity',1);
    });

    $('.bot-tab li').mouseenter(function(){
        $(this).addClass('on').siblings().removeClass('on');
        $('.bot-box .bot-box-inner').eq($(this).index()).show().siblings().hide();
    });

});